package com.glela.packet.mapper;

import java.math.BigDecimal;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import com.glela.domain.vo.RedPacketShareHistVo;
import com.glela.packet.model.RedPacketShareHist;

@Repository
public interface RedPacketShareHistBizMapper {
	
	RedPacketShareHist getByShareUrl(@Param(value = "shareUrl") String shareUrl);
	
	int queryShareTimes(@Param("userId")Long userId);

	int batchUpdate(List<RedPacketShareHist> list);

	BigDecimal querySumAmount(@Param("userId")Long userId);

	List<RedPacketShareHistVo> showRedPacketShareLists(@Param("userId")Long userId);

}

